/**
 * 
 */
package com.gragra.sequentiaDataGenerator;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
/**
 * this simply segments a sequence of word|tag|otherStuff into its constituents and adds it into a return
 * ObjectArrayList, the list is reused each time
 * @author Christoph Teichmann
 * created Mar 26, 2013 8:51:46 PM
 * @version 0.1
 */
public class EmptySegmentation implements Segmentation
{
	/**
	 * the list that is used for return
	 */
	private final ObjectArrayList<String[]> ret = new ObjectArrayList<String[]>();
	/* (non-Javadoc)
	 * @see com.gragra.sequentiaDataGenerator.Segmentation#segment(java.lang.String)
	 */
	@Override
	public ObjectArrayList<String[]> segment(String s)
	{
		ret.clear();
		ret.add(s.split("\\|"));
		return ret;
	}
}